﻿/// <summary>
/// Author: HBLAi
/// Date: 2013/06/06
/// </summary>
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace SketchTour.Models
{
    public class MSVH00Models
    {
        [Required(ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSVH00_SCR_txtCode")]
        public string Code { get; set; }

        [Required(ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSVH00_SCR_txtName")]
        public string Name { get; set; }

        [ScaffoldColumn(false)]
        [Required(ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSVH00_SCR_txtType")]
        public long? VehicleTypeID { get; set; }

        [DisplayName("Vehicle Type")]
        public string VehicleType { get; set; }

        [RegularExpression(@"^\d+$", ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSVH00_SCR_txtTelFormat")]
        [Required(ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSVH00_SCR_txtTel")]
        public string Tel { get; set; }

        [RegularExpression(@"^\d+$", ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSVH00_SCR_txtFaxFormat")]
        public string Fax { get; set; }

        [ScaffoldColumn(false)]
        [Required(ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSVH00_SCR_txtAddress")]
        public string Address { get; set; }
        public Nullable<bool> IsDelete { get; set; }
        public Nullable<System.DateTime> CreateDate { get; set; }
        public string CreateBy { get; set; }
        public Nullable<System.DateTime> UpdateDate { get; set; }
        public string UpdateBy { get; set; }
        public string Note { get; set; }
    }

    public static class MSVH00Key
    {
        public const string Code = "Code";
        public const string Name = "Name";
        public const string VehicleTypeID = "ID";
        public const string VehicleType = "Name";
        public const string Tel = "Tel";
        public const string Fax = "Fax";
        public const string Address = "Address";
        public const string IsDelete = "IsDelete";
        public const string CreateDate = "CreateDate";
        public const string CreateBy = "CreateBy";
        public const string UpdateDate = "UpdateDate";
        public const string UpdateBy = "UpdateBy";
        public const string Note = "Note";
    }
}